import Vue from 'vue'
import App from './App'
import Msg from "common/msg.js" //使用的函数
import Json from "json.js" //使用的数据
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'


Vue.use(ElementUI);

Vue.prototype.$json = Json
Vue.prototype.$msg = Msg

Vue.config.productionTip = false

App.mpType = 'app'

axios.defaults.baseURL = process.env.VUE_APP_SERVER

Vue.prototype.$axios = axios.create({
    baseURL: 'http://localhost:9977',
    timeout: 2000,
    defaults: {
        crossDomain: true,
    },
});


const app = new Vue({
	...App
})
app.$mount()
